import { http } from '@/utils'

// 1.获取技术服务分类
export interface CateResponse {
    category: Category[];
    code: number;
    data: Datum[];
    [property: string]: any;
}

export interface Category {
    alt?: string;
    caption?: null;
    content?: null;
    default_image?: string;
    description?: null;
    id?: number;
    keywords?: null;
    router?: string;
    title?: string;
    [property: string]: any;
}

export interface Datum {
    alt: string;
    caption: string;
    content: null | string;
    default_image: string;
    description: null;
    id: number;
    keywords: null;
    router: string;
    title: string;
    [property: string]: any;
}

export function fetchSupportCateAPI() {
    return http.request<CateResponse>({
        url: '/support/category/',
    })
}

